<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--框架必需start-->
<script type="text/javascript" src="/staff_vehicle/js/jquery-1.4.js"></script>
<script type="text/javascript" src="/staff_vehicle/js/framework.js"></script>
<link href="/staff_vehicle/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link  rel="stylesheet" type="text/css" id="skin" prePath="/staff_vehicle/"/>
<!--框架必需end-->

<!--截取文字start-->
<script type="text/javascript" src="/staff_vehicle/js/text/text-overflow.js"></script>
<!--截取文字end-->

<!--修正IE6支持透明PNG图start-->
<script type="text/javascript" src="/staff_vehicle/js/method/pngFix/supersleight.js"></script>
<!--修正IE6支持透明PNG图end-->

<script>
/*
	function a(){
		var a=$("#time_1").val();
		var b=$("#time_2").val();
		if(!a.equal("")||b.equal("")){
				if(!a.equal("")&&b.equal(""))
				else{
						alert("请正确操作！");
					}
			}
		alert("^^^^^^^^^^^");
	};
	*/
function a(){
	var a=$("#time_1").val();
	var b=$("#time_2").val();
		if(!a==""||!b==""){
			if(a==""||b=="")
			{
				alert("请正确选择时间！！！");
				//response.setHeader("refresh", "3;URL=car_applyed.jsp");
				window.location.href='car_applyed.jsp';
			}
		}
}


</script>



</head>
<body>

<div class="box_tool_mid padding_right5">
	<div class="center">
	<div class="left">
	<div class="right">
		<div class="padding_top8 padding_left10">
		<form action="qInnerVehicle!queryVUseInfo">
		<table>
			<tr>

				<td>离开时间：</td>
				<td><input type="text" name="startTime" id="time_1" class="date"  dateFmt="yyyy-MM-dd HH:mm:ss"/></td>
				<td>返回时间：</td>
				<td><input type="text" name="endTime" id="time_2" class="date"  dateFmt="yyyy-MM-dd HH:mm:ss"/></td>
				<td>车牌号：</td>
				<td><input type="text" name="vehicleId"/></td>
				<!--
				<td>
					<label for="checkbox-1" >全站搜索</label><input type="checkbox" id="checkbox-1" value="0"/>
				</td>
				 -->
				 <td><input type="hidden" name="state" value="applied"/></td>
				 <td><input type="hidden" name="type" value="not"/></td>
				<%--<td><button onclick="a()"><span class="icon_find">查询</span></button></td>--%>
				<td><button ><span class="icon_find">查询</span></button></td>
			</tr>
		</table>
		</form>
		</div>
	</div>
	</div>
	</div>
</div>

<div id="scrollContent" class="border_gray">
	<table class="tableStyle">
		<tr>
			<th width="15%">申请人员工号</th>
			<th width="15%">使用人员工号</th>
			<th width="15%">驾驶员员工号</th>
			<th width="20%">车牌号</th>
			<th width="15%">离开时间</th>
			<th width="20%">返回时间</th>
			<!--
			<th width="10%">婚姻状况</th>
			<th width="10%">操作</th>
			-->
		</tr>

		<s:iterator value="innerCarUseInfoList" status="status">
		             <tr>
		             <td><s:property value="staffApplyCar.staffId" /> </td>
		             <td><s:property value="staffApplyCar.usercarStaffid" /> </td>
		             <td><s:property value="staffUseCar.driverId" /> </td>
		             <td><s:property value="staffUseCar.vehicleId" /> </td>
		             <td><s:date name="staffUseCar.offTime" format="yyyy-MM-dd HH:mm:ss"/> </td>
		             <td><s:date name="staffUseCar.inTime" format="yyyy-MM-dd HH:mm:ss"/> </td>
                    </tr>
         </s:iterator>
	</table>
</div>


<div style="height:35px;">
	<div class="float_left padding5">

	</div>
	<div class="float_right padding5 paging">
		<div class="float_left padding_top4">
		<span class="paging_disabled"><a href="javascript:;">上一页</a></span>
		<span class="paging_current"><a href="javascript:;">1</a></span>
		<span><a href="javascript:;">2</a></span>
		<span><a href="javascript:;">3</a></span>
		<span><a href="javascript:;">4</a></span>
		<span><a href="javascript:;">5</a></span>
		<span>...</span>
		<span><a href="javascript:;">20</a></span>
		<span><a href="javascript:;">下一页</a></span>&nbsp;每页
		</div>
		<div class="float_left"><select autoWidth="true"><option>50</option><option>100</option><option>150</option></select></div>
		<div class="float_left padding_top4">条记录</div>
		<div class="clear"></div>
	</div>
	<div class="clear"></div>
</div>

</body>
</html>